From: Adel Gadllah Date: Sat, 6 Oct 2012 14:10:03 +0000 (+0200) Subject: notificationDaemon: Store tray-icon-added/removed ids X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~5658 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=17e70ff8ece4357c6f4f063a77d5b0f65e0f4a5e;p=gnome-shell.git notificationDaemon: Store tray-icon-added/removed ids This allows extensions to reuse the trayManager. --- diff --git a/js/ui/notificationDaemon.js b/js/ui/notificationDaemon.js index 2e800b3a4..6d2fd6d89 100644 --- a/js/ui/notificationDaemon.js +++ b/js/ui/notificationDaemon.js @@ -116,8 +116,8 @@ const NotificationDaemon = new Lang.Class({ this._busProxy = new Bus(); this._trayManager = new Shell.TrayManager(); - this._trayManager.connect('tray-icon-added', Lang.bind(this, this._onTrayIconAdded)); - this._trayManager.connect('tray-icon-removed', Lang.bind(this, this._onTrayIconRemoved)); + this._trayIconAddedId = this._trayManager.connect('tray-icon-added', Lang.bind(this, this._onTrayIconAdded)); + this._trayIconRemovedId = this._trayManager.connect('tray-icon-removed', Lang.bind(this, this._onTrayIconRemoved)); Shell.WindowTracker.get_default().connect('notify::focus-app', Lang.bind(this, this._onFocusAppChanged));